home *** CD-ROM | disk | FTP | other *** search
- diff -u -r --new-file last-version/source/change-log samba-1.9.15p8/source/change-log
- --- last-version/source/change-log Mon Jan 15 19:45:39 1996
- +++ samba-1.9.15p8/source/change-log Tue Jan 16 20:30:53 1996
- @@ -1751,6 +1751,11 @@
- - chgpasswd changes from Roman Dumych <roman@nyxis.unibase.com>
- for SVR4
- - GUEST_SESSSETUP change from David.Chappell@mail.cc.trincoll.edu
- + - released p7
- + - moved SO_REUSEADDR before bind()
- + - added more flexible GUEST_SESSSETUP to local.h and restored
- + pre-p7 behaviour as default
- + - released p8
-
- ==========
- todo:
- diff -u -r --new-file last-version/source/local.h samba-1.9.15p8/source/local.h
- --- last-version/source/local.h Sun Dec 3 21:42:38 1995
- +++ samba-1.9.15p8/source/local.h Tue Jan 16 20:26:37 1996
- @@ -97,7 +97,23 @@
-
- /* do you want session setups at user level security with a invalid
- password to be rejected or allowed in as guest? WinNT rejects them
- - but it can be a pain as it means "net view" needs to use a password */
- + but it can be a pain as it means "net view" needs to use a password
- +
- + You have 3 choices:
- +
- + GUEST_SESSSETUP = 0 means session setups with an invalid password
- + are rejected.
- +
- + GUEST_SESSSETUP = 1 means session setups with an invalid password
- + are rejected, unless the username does not exist, in which case it
- + is treated as a guest login
- +
- + GUEST_SESSSETUP = 2 means session setups with an invalid password
- + are treated as a guest login
- +
- + Note that GUEST_SESSSETUP only has an effect in user or server
- + level security.
- + */
- #ifndef GUEST_SESSSETUP
- #define GUEST_SESSSETUP 0
- #endif
- diff -u -r --new-file last-version/source/reply.c samba-1.9.15p8/source/reply.c
- --- last-version/source/reply.c Mon Jan 15 19:32:57 1996
- +++ samba-1.9.15p8/source/reply.c Tue Jan 16 20:28:29 1996
- @@ -374,10 +374,15 @@
- }
- if (!valid_nt_password && !guest && !password_ok(user,smb_apasswd,smb_apasslen,NULL,False))
- {
- -#if !GUEST_SESSSETUP
- - if (lp_security() >= SEC_USER && Get_Pwnam(user,True))
- + if (lp_security() >= SEC_USER) {
- +#if (GUEST_SESSSETUP == 0)
- return(ERROR(ERRSRV,ERRbadpw));
- #endif
- +#if (GUEST_SESSSETUP == 1)
- + if (Get_Pwnam(user,True))
- + return(ERROR(ERRSRV,ERRbadpw));
- +#endif
- + }
- if (*smb_apasswd || !Get_Pwnam(user,True))
- strcpy(user,lp_guestaccount(-1));
- DEBUG(3,("Registered username %s for guest access\n",user));
- diff -u -r --new-file last-version/source/util.c samba-1.9.15p8/source/util.c
- --- last-version/source/util.c Mon Jan 15 19:44:25 1996
- +++ samba-1.9.15p8/source/util.c Tue Jan 16 10:14:44 1996
- @@ -3694,6 +3694,11 @@
- if (res == -1)
- { DEBUG(0,("socket failed\n")); return -1; }
-
- + {
- + int one=1;
- + setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one));
- + }
- +
- /* now we've got a socket - we need to bind it */
- if (bind(res, (struct sockaddr * ) &sock,sizeof(sock)) < 0)
- {
- @@ -3713,11 +3718,6 @@
- return(-1);
- }
- DEBUG(3,("bind succeeded on port %d\n",port));
- -
- - {
- - int one=1;
- - setsockopt(res,SOL_SOCKET,SO_REUSEADDR,(char *)&one,sizeof(one));
- - }
-
- return res;
- }
- diff -u -r --new-file last-version/source/version.h samba-1.9.15p8/source/version.h
- --- last-version/source/version.h Mon Jan 15 21:30:44 1996
- +++ samba-1.9.15p8/source/version.h Tue Jan 16 20:37:41 1996
- @@ -1 +1 @@
- -#define VERSION "1.9.15p7"
- +#define VERSION "1.9.15p8"
-